C code for PEGetGraphType and PESetGraphType

Use the following code as an example of how to call the PEGetGraphType and PESetGraphType functions:

PEGetGraphType

short            sectionCode,
    // The report section the graph is in
    graphN,
    // The graph number in the section
    graphType;
    // The type of graph
sectionCode = PE_GROUPHEADER;
    // Graph is in Group Header section
graphN = 0;            // First graph in section
if (!PEGetGraphType(Job, sectionCode, graphN, &graphType)){
    // Handle error
}     // graphType now contains a PE graph type value

PESetGraphType

short                sectionCode,
    // The report section the graph is in
    graphN,
    // The graph number in the section
    graphType;
    // The type of graph
sectionCode = PE_GROUPHEADER;                            // Graph is in Group Header section
graphN = 0;                        // First graph in section
graphType = PE_THREED_BAR_GRAPH;                        // Use 3D Bar graph
if (!PESetGraphType(Job, sectionCode, graphN, &graphType)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com